﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="Questions.aspx.cs" Inherits="Admin_Questions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server">
    <telerik:RadGrid ID="grid" DataSourceID="ds" runat="server" AutoGenerateColumns="false" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" Skin="Telerik" AllowSorting="true">
        <MasterTableView CommandItemDisplay="Bottom" InsertItemDisplay="Bottom" DataKeyNames="Id">
            <Columns>
                <acms:RadIndexColumn />
                <acms:RadGridTextBoxColumn HeaderText="Name" DataField="Name" Width="250px" Required="true" />
                <acms:RadGridDropDownColumn HeaderText="Type" DataField="QuestionType" DataValueField="QuestionType" DropDownDisplayField="Name" DropDownValueField="Name" DataSourceID="dsType"  Required="true" ShowEmptyItem="true" />
                <acms:RadGridDropDownColumn HeaderText="Section" DataField="SectionName" DataValueField="SectionId" DropDownDisplayField="Name" DropDownValueField="Id" DataSourceID="dsSections" Required="true" ShowEmptyItem="true" />
                <telerik:GridBoundColumn HeaderText="Created" DataField="Created" ReadOnly="true" />
                <acms:RadGridEditColumn />
                <acms:RadGridDeleteColumn />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <acms:EventDrivenDataSource ID="ds" runat="server" />
    <acms:EventDrivenDataSource ID="dsSections" runat="server" />
    <acms:EventDrivenDataSource ID="dsType" runat="server" />
    <asp:Button ID="btnUpload" Text="Upload Questions" runat="server" />
</asp:Content>

